
# -*- coding: utf-8 -*-

from flask_app.extensions import db

class UserMD(db.Model):
    __tablename__ = "user_t"

    name = db.Column(db.String(80))
    id = db.Column(db.String(80),db.ForeignKey("user_account_t.id"), primary_key=True)


    
    # def get_id(self):
    #     return self.id
        
    
    def __init__(self,id,user_info):
        self.__id = id
        self.name = user_info.get("name")

    def save(self):
        db.session.add(self)
        db.session.commit()


    